package top.ahzy.seobench.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import top.ahzy.seobench.interfaces.RequestBodyParam;

@Validated
@RestController
@RequestMapping("/test")
@Api(tags = "测试模块")
public class TestController {

    @PostMapping("/requestBodyParam")
    @ApiOperation(value = "测试请求参数", notes = "")
    public String test(@RequestBodyParam(value = "id",required = false)  String id) {
        return "Received id: " + id;
    }
}
